package com.pktechan.manage.service.impl;


import com.pktechan.manage.base.BaseMapper;
import com.pktechan.manage.base.BaseServiceImpl;
import com.pktechan.manage.dao.CustBaseMapper;
import com.pktechan.manage.entity.CustBase;
import com.pktechan.manage.service.CustBaseService;
import com.pktechan.manage.utils.FastDfsHttpUtil;
import com.pktechan.manage.utils.StringUtil;
import com.pktechan.manage.vo.CustVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("custBaseService")
public class CustBaseServiceImpl extends BaseServiceImpl<CustBase> implements CustBaseService {

    @Autowired
    private CustBaseMapper custBaseMapper;

    /**
     * 由业务类实现
     *
     * @return
     */
    @Override
    public BaseMapper<CustBase> getBaseMapper() {
        return custBaseMapper;
    }

    /**
     * 客户列表
     * @param custBase
     * @return
     */
    @Override
    public List<CustVO> getCustVOList(CustBase custBase) {
        return custBaseMapper.getCustVOList(custBase);
    }

    /**
     * 根据id查询客户信息
     * @param custId
     * @return
     */
    @Override
    public CustVO getCustVOById(Integer custId) {
        return custBaseMapper.getCustVOById(custId);
    }
}
